﻿using System;
using System.Web.Mvc;
using Telerik.Web.Mvc;
using viBook.Models;

namespace viBook.Controllers
{
    public class AdminsController : BaseController
    {
        #region Constructors and Repository vars

        private readonly IChapterRepository _chapterRepository = new ChapterRepository();

        public AdminsController()
            : this(new ChapterRepository())
        {
        }

        public AdminsController(IChapterRepository chapterRepository)
        {
            _chapterRepository = chapterRepository;
        }

        #endregion

        public ActionResult CommentReport()
        {
            return View(_chapterRepository.GetAllChapterReport());
        }

        [GridAction]
        public ActionResult CommentReportAjax()
        {
            throw new NotImplementedException();
        }
    }
}